package cn.z2huo.knowledge.streamapi;

import java.util.List;

/**
 * <p>
 *
 * @author z2huo
 */
public class AnyMatchTest {
    public static void main(String[] args) {
        List<String> list = List.of("1", "a", "b", "A");

        boolean bool = List.of("1", "a", "b", "A", "2").stream().allMatch(list::contains);
        System.out.println(bool);
    }
}
